AC_PREREQ(2.52)

AC_INIT([mobile-broadband-provider-info], [20120614],
        [dcbw@redhat.com], [mobile-broadband-provider-info])
AM_INIT_AUTOMAKE([-Wall -Werror foreign no-dist-gzip dist-bzip2])
AM_MAINTAINER_MODE([enable])

AC_PROG_CC
AC_PROG_LIBTOOL

AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([
	Makefile
        src/Makefile
	mobile-broadband-provider-info.pc
])

PKG_CHECK_MODULES([glib], [glib-2.0])
AC_SUBST(glib_CFLAGS)
AC_SUBST(glib_LIBS)

PROVIDERDB_XML="serviceproviders.xml"
PROVIDERDB_BFD="serviceproviders.bfd"
PROVIDERDB_CONVERTER="convert-serviceproviders.xsl"
AC_SUBST(PROVIDERDB_XML)
AC_SUBST(PROVIDERDB_BFD)
AC_SUBST(PROVIDERDB_CONVERTER)

AC_ARG_ENABLE(tools, AC_HELP_STRING([--enable-tools], [enable testing tools]))
AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")

AC_OUTPUT
